package com.atguigu.classes;

/**
 * @program: IDEAcode
 * @description:
 * @author: Mr.zjx
 * create: 2021-07-24-21-10
 **/


public class Test07 {
    public static void main(String[] args) {
        absMath();
    }
    public static void absMath(){
        int i = Math.abs(-7);
        System.out.println(i);

        double d = Math.ceil(8.8);//返回大于或等于参数的最小整数（向上取整）
        System.out.println(d);

        double c = Math.floor(8.8);//向下取整
        System.out.println(c);

        long round = Math.round(3.55);//四舍五入
        System.out.println(round);
    }
}
